package com.hns.can.mainte.web;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.hns.can.common.vo.CommonParamsVo;
import com.hns.can.common.web.BaseController;
import com.hns.can.mainte.service.BatteryExtremeService;
import com.hns.can.mainte.vo.BatteryExtremeVo;

@Controller
@RequestMapping("/batteryExtreme")
public class BatteryExtremeController extends BaseController {
	
	@Autowired
	private BatteryExtremeService batteryExtremeService;
	
	@RequestMapping("/getBatteryVoltageData")
	@ResponseBody
	public Object getBatteryVoltageData(CommonParamsVo params){
		List<BatteryExtremeVo> list = batteryExtremeService.getBatteryVoltageData(params);
		return this.getReturnResult(list);
	}
	
	
	@RequestMapping("/getBatteryTemperatureData")
	@ResponseBody
	public Object getBatteryTemperatureData(CommonParamsVo params){
		List<BatteryExtremeVo> list = batteryExtremeService.getBatteryTemperatureData(params);
		return this.getReturnResult(list);
	}
	
}
